package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 设备绑定客户历史表
 * </p>
 *
 * @author wanghai
 * @since 2022-06-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_consumer_dtu_history")
@ApiModel(value="ConsumerDtuHistory对象", description="设备绑定客户历史表")
public class ConsumerDtuHistory extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @ApiModelProperty(value = "设备唯一标示")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "事件 0:解绑, 1:绑定")
    @TableField("event")
    private Integer event;

    @ApiModelProperty(value = "设备绑定渠道, 1-手动, 2-时刻助手，5-tcis退货")
    @TableField("bind_channel")
    private Integer bindChannel;

    @ApiModelProperty(value = "时刻助手订单号")
    @TableField("out_order_code")
    private String outOrderCode;


    @ApiModelProperty(value = "设备号")
    @TableField("iMEI")
    private String iMEI;

    @ApiModelProperty(value = "客户id")
    @TableField("consumer_id")
    private Integer consumerId;

    @ApiModelProperty(value = "日期")
    @TableField(exist = false)
    private String installDate;

    @ApiModelProperty(value = "操作人编码")
    @TableField("operation_person_code")
    private String operationPersonCode;

    @ApiModelProperty(value = "操作人名称")
    @TableField("operation_person_name")
    private String operationPersonName;

    @ApiModelProperty(value = "备注说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "户号")
    @TableField(value="subs_code",exist = false)
    private String subsCode;

    @ApiModelProperty(value = "户名")
    @TableField(value="cust_name",exist = false)
    private String custName;


    @ApiModelProperty(value = "户址")
    @TableField(value ="cust_address",exist = false)
    private String custAddress;

    @ApiModelProperty(value = "客户名称")
    @TableField(value = "Name" ,exist = false)
    private String name;

    @ApiModelProperty(value = "行业类型")
    @TableField(value = "Industry_Type",exist = false)
    private String industryType;

    @ApiModelProperty(value = "户主手机号")
    @TableField(value = "cust_phone",exist = false)
    private String custPhone;

    @ApiModelProperty(value = "客户id")
    @TableField(value = "consumer_seq",exist = false)
    private String consumerSeq;


}
